package com.xmtlxx.system.domain.vo;

import com.xmtlxx.common.annotation.ExcelDictFormat;
import com.xmtlxx.common.convert.ExcelDictConvert;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * 检查项类型视图对象 sys_check_type
 *
 * @author xmtlxx
 * @date 2022-04-26
 */
@Data
@ApiModel("检查项类型视图对象")
@ExcelIgnoreUnannotated
public class SysCheckTypeVo {

    private static final long serialVersionUID = 1L;

    /**
     * 检查类型ID
     */
    @ExcelProperty(value = "检查类型ID")
    @ApiModelProperty("检查类型ID")
    private Long typeId;

    /**
     * 类型名称
     */
    @ExcelProperty(value = "类型名称")
    @ApiModelProperty("类型名称")
    private String name;

    /**
     * 排序
     */
    @ExcelProperty(value = "排序")
    @ApiModelProperty("排序")
    private Integer sort;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "glo_status")
    @ApiModelProperty("状态（0正常 1停用）")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    @ApiModelProperty("备注")
    private String remark;

    /**
     * 父级ID
     */
    @ExcelProperty(value = "父级ID")
    @ApiModelProperty("父级ID")
    private Long parentId;

    /**
     * 祖级列表
     */
    @ExcelProperty(value = "祖级列表")
    @ApiModelProperty(value = "祖级列表")
    private String ancestors;

    private List<SysCheckItemVo> items;


}
